import {createSlice} from "@reduxjs/toolkit";

export const htmlState = createSlice({
    name: 'htmlState',
    initialState: {
        value: 'default'
    },

    reducers: {
        setDark: (state) => {
            state.value = 'dark'
        },
        setLight: (state) => {
            state.value = 'light'
        }
    }
})

export const {
    setDark,
    setLight,
    setMode
} = htmlState.actions;

export default htmlState.reducer;
